package com.wlyuan.open.remote.facade.translator;

import com.wlyuan.open.remote.facade.Tenant;
import com.wlyuan.tenant.vo.TenantDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author lijing
 */
public class TenantTranslator {
    @Mapper
    public interface Translator {

        Tenant translate(TenantDetailVO source);

    }

    private static final Translator TRANSLATOR = Mappers.getMapper(Translator.class);

    public static Tenant translate(TenantDetailVO source) {
        return TRANSLATOR.translate(source);
    }

}
